@extends("layouts.common")
@section("content")
    <style>
        .panel .panel-heading .panel-actions {
            float: right;
            margin-right: -15px;
            height: 40px;
            font-size: 0;
            width: 30%;
            text-align: right;
        }
    </style>

    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="fa fa-table"></i>我的代理</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="/welcome">Home</a></li>
                <li><i class="fa fa-table"></i><a href="/agent">我的代理</a></li>
                <li><i class="fa fa-table"></i>交易记录</li>
            </ol>
        </div>
    </div>

    <div class="row">

        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2><i class="fa fa-table red"></i><span class="break"></span><strong>交易记录</strong></h2>
                </div>
                <div class="panel-body">
                    <table class="table table-condensed">
                        <thead>
                        <tr>
                            <th>代理</th>
                            <th>姓名</th>
                            <th>邮箱</th>
                            <th>手机</th>
                            <th>交易类型</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>数量</th>
                            <th>收益</th>
                            {{--<th>操作</th>--}}
                            {{--<th>上级</th>--}}
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($data as $val)
                        <tr>
                            <td>{{$val->pname}}</td>
                            <td>{{$val->firstname.$val->lastname}}</td>
                            <td>{{$val->email}}</td>
                            <td>{{$val->phone}}</td>
                            <td>{{$val->item}}</td>
                            <td>{{$val->starttime}}</td>
                            <td>{{$val->endtime}}</td>
                            <td>{{$val->size}}</td>
                            <td>{{$val->profit}}</td>
                            {{--<td><a href="/agent/agentlist/{{$val->id}}" data-val="{{$val->id}}"> 查看</a></td>--}}
                            {{--<td>{{$val->pname}}</td>--}}
                        </tr>
                            @endforeach

                        </tbody>
                    </table>
                    @include("layouts.page",['paginator'=>$data])
                </div>
            </div>
        </div><!--/col-->
    </div>
    <style>
        td,th{
            text-align: center;
        }
    </style>
@endsection